package com.znf4.user.car.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.user.car.entity.UserCar;
import com.znf4.user.car.mapper.UserCarMapper;
import com.znf4.user.car.server.UserCarServer;

@Service
public class UserCarServerImpl implements UserCarServer {
	
	@Autowired
	private UserCarMapper userCarMapper ;

	
	
	public void addUserCar(UserCar userCar) {
		userCarMapper.insert(userCar);
		
	}

	public void updateUserCar(UserCar userCar) {
		userCarMapper.update(userCar);
		
	}

	public void delOneUserCar(UserCar userCar) {
		userCarMapper.deleteOne(userCar);
		
	}

	public void delAllUserCar(List<UserCar> list) {
		userCarMapper.deleteAll(list);
		
	}

	public UserCar queryOne(UserCar userCar) {
		return userCarMapper.queryOne(userCar);
	}

	public List<UserCar> queryAll(UserCar userCar) {
		return userCarMapper.queryAll(userCar);
	}

	
	
	
	
	
	
	
	
	

}
